package com.jsj.service;

import com.jsj.pojo.Repair;

import java.util.Date;
import java.util.List;

public interface RepairService {

    Boolean addRepair(Repair repair);
    List<Repair> queryAllRepair();
    List<Repair> queryRepairByName(String deviceName);
    Boolean updateRepairById(Repair repair);
    Boolean repairedAndReturn(int repairId, int deviceId, Date returnTime);
    List<Repair> queryRepairByStatus(String status);
    Boolean delRepairById(int repairId);
    //超级管理员已审核未审核
    List<Repair> queryCheckStatus(String status);
    Boolean checkRepair(int repairId,String check);
    //撤销申请，并删除该条被拒绝的数据
    Boolean updateRepairDeviceStatus(int repairId, int deviceId);

}
